import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/drawactr',
  component: Layout,
  redirect: '/drawactr/Record',
  name: 'drawactr',
  meta: {
    title: '抽奖记录',
    icon: 'lucide:notebook-text',
  },
  children: [
    {
      path: 'Record',
      name: 'drawactRecord',
      component: () => import('@/views/drawact/record.vue'),
      meta: {
        title: '抽奖记录',
        auth: ['permission.browse'],
        menu: false,
        activeMenu: '/drawactr',
      },
    },
  ],
}

export default routes
